<?php
namespace app\index\controller;

use app\common\service\ImageLoad;

class Index
{
    public function index()
    {

        return view('index');
    }
    public function show($t){
        list($id,$size)=explode('_',$t,2);
        $img = new ImageLoad($id,'b','image/jpeg',$size);
        $img->printImg();
    }
    public function upload(){
        var_dump(ImageLoad::upload("UpLoadFile"));
    }
}
